package com.naiterui.ehp.bs.b2c.order.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <pre>
 *      退货订单审核日志
 * </pre>
 *
 * @author 王泽浩
 * @date 2019-02-19 10:27
 * @since 1.0.0
 */
@Data
@Entity
@NoArgsConstructor
@Table(name = "e_return_goods_order_audit_log")
public class ReturnGoodsOrderAuditLog implements java.io.Serializable {

    private static final long serialVersionUID = -3088010656080441816L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    /**
     * 订单ID
     */
    @Column(name = "order_id", nullable = false)
    private Long orderId;

    /**
     * 订单号
     */
    @Column(name = "order_sn", nullable = false, length = 30)
    private String orderSn;

    /**
     * 备注
     */
    @Column(name = "remark", length = 200)
    private String remark;

    /**
     * 创建时间
     */
    @Column(name = "created_at")
    private Date createdAt;

    /**
     * 创建人
     */
    @Column(name = "created_by")
    private String createdBy;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

}
